﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Core.EF.Entitys.Account
{
    /// <summary>
    /// 权限
    /// </summary>
    public class Permission : BaseEntity
    {
        /// <summary>
        /// 权限名称
        /// </summary>
        public string PermissionName
        {
            get; set;
        }
        /// <summary>
        /// action
        /// </summary>
        public string ActionName
        {
            get; set;
        }


        /// <summary>
        /// 父级Id
        /// </summary>
        public int ParentId
        {
            get; set;

        }


        /// <summary>
        /// 支持path查找
        /// </summary>
        public string PermissionPath
        {
            get; set;
        }

        /// <summary>
        /// 角色权限列表
        /// </summary>
        public List<RolePermission> RolePermissions { get; set; }
    }
}

